package com.sxbbc.common.core.entity.jz;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * app分类图标信息表
 * </p>
 *
 * @author leehao
 * @since 2019-06-03
 */
public class AppClassification implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 分类别名
     */
    private String name;

    /**
     * 分类图片
     */
    private String icon;

    /**
     * 1显示 0不显示
     */
    private Integer display;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 事件类型见枚举类EventEnums
     */
    private String event;

    /**
     * 默认是跳一级分类
     */
    private String url;

    /**
     * 1app 2小程序 3微信 4pc
     */
    private Integer position;

    /**
     * 事件名称
     */
    @TableField(exist = false)
    private String eventName;

    /**
     * 分类名称
     */
    @TableField(exist = false)
    private String classifyName;

    /**
     * 一级分类
     */
    @TableField(exist = false)
    private Integer firstClass;

    /**
     * 二级分类
     */
    @TableField(exist = false)
    private Integer secondClass;

    /**
     * 三级分类
     */
    @TableField(exist = false)
    private Integer thirdClass;

    /**
     * 三级分类ID集合
     */
    @TableField(exist = false)
    private List<ProcThirdClassifyMain> thirdList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }
    public Integer getDisplay() {
        return display;
    }

    public void setDisplay(Integer display) {
        this.display = display;
    }
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
    public String getEvent() {
        return event;
    }

    public void setEvent(String event) {
        this.event = event;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public Integer getPosition() {
        return position;
    }

    public void setPosition(Integer position) {
        this.position = position;
    }

    public String getEventName() {
        return eventName;
    }

    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

    public String getClassifyName() {
        return classifyName;
    }

    public void setClassifyName(String classifyName) {
        this.classifyName = classifyName;
    }

    public Integer getFirstClass() {
        return firstClass;
    }

    public void setFirstClass(Integer firstClass) {
        this.firstClass = firstClass;
    }

    public Integer getSecondClass() {
        return secondClass;
    }

    public void setSecondClass(Integer secondClass) {
        this.secondClass = secondClass;
    }

    public Integer getThirdClass() {
        return thirdClass;
    }

    public void setThirdClass(Integer thirdClass) {
        this.thirdClass = thirdClass;
    }

    public List<ProcThirdClassifyMain> getThirdList() {
        return thirdList;
    }

    public void setThirdList(List<ProcThirdClassifyMain> thirdList) {
        this.thirdList = thirdList;
    }

    @Override
    public String toString() {
        return "AppClassification{" +
        "id=" + id +
        ", name=" + name +
        ", icon=" + icon +
        ", display=" + display +
        ", sort=" + sort +
        ", event=" + event +
        ", url=" + url +
        ", position=" + position +
        "}";
    }
}
